using System;
using System.Collections.Generic;
using System.Collections;

namespace Nhibernate
{
    public class SearchObj
    {
        private string name;

        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        private Object value;

        public Object Value
        {
            get { return this.value; }
            set { this.value = value; }
        }
        private string oper;

        public string Oper
        {
            get { return oper; }
            set { oper = value; }
        }
        private string logicOper;

        public string LogicOper
        {
            get { return logicOper; }
            set { logicOper = value; }
        }
        public const String OP_EQ = "EQ";
        public const String OP_LIKE = "LIKE";
        public const String OP_GE = "GE";
        public const String OP_LE = "LE";
        public const String OP_GT = "GT";
        public const String OP_LT = "LT";
        public const String OP_NE = "NE";
        public const String LG_AND = "AND";
        public const String LG_OR = "OR";
        public const String LG_IS_NULL = "isNull";
        public const String LG_IS_NOT_NULL = "isNotNull";

        public const String OP_DEFAULT = "EQ";
        public const String LG_DEFAULT = "AND";
        public SearchObj(string _name, Object _value)
        {
            this.name = _name;
            this.value = _value;
            this.oper = OP_DEFAULT;
            this.logicOper = LG_DEFAULT;
        }
        public SearchObj(string _name, Object _value, string _oper, string _logicOper)
        {
            this.name = _name;
            this.value = _value;
            this.oper = _oper;
            this.logicOper = _logicOper;
        }
    }
}
